bitkeeper revision 1.1709.1.16 (42b1d2ecGSNeZhThHshE903eA1tK-Q)
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 16 Jun 2005 19:28:44 +0000 (19:28 +0000)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 16 Jun 2005 19:28:44 +0000 (19:28 +0000)
Add arch-dep notification hook (per discussion on xen-devel)
needed for ia64 and VTi/x.
Signed-off-by: Matt Chapman <matthewc@hp.com>
.rootkeys
xen/include/asm-ia64/event.h [new file with mode: 0644]
xen/include/asm-x86/event.h [new file with mode: 0644]
xen/include/xen/event.h

index 0c1811d38ed1ec92a3b67be59db75aebed3f73ce..c50bc50a0d754f4c49aca7276acb3b253b2e1899 100644 (file)
--- a/.rootkeys
+++ b/.rootkeys
 421098b6ZcIrn_gdqjUtdJyCE0YkZQ xen/include/asm-ia64/debugger.h
 421098b6z0zSuW1rcSJK1gR8RUi-fw xen/include/asm-ia64/dom_fw.h
 421098b6Nn0I7hGB8Mkd1Cis0KMkhA xen/include/asm-ia64/domain.h
+42b1d2d0rkNCmG2nFOnL-OfhJG9mDw xen/include/asm-ia64/event.h
 4241e880hAyo_dk0PPDYj3LsMIvf-Q xen/include/asm-ia64/flushtlb.h
 421098b6X3Fs2yht42TE2ufgKqt2Fw xen/include/asm-ia64/ia64_int.h
 421098b7psFAn8kbeR-vcRCdc860Vw xen/include/asm-ia64/init.h
 40715b2dTokMLYGSuD58BnxOqyWVew xen/include/asm-x86/div64.h
 4204e7acwzqgXyTAPKa1nM-L7Ec0Qw xen/include/asm-x86/domain.h
 41d3eaaeIBzW621S1oa0c2yk7X43qQ xen/include/asm-x86/e820.h
+42b1d2caFkOByU5n4LuMnT05f3kJFg xen/include/asm-x86/event.h
 3ddb79c3NU8Zy40OTrq3D-i30Y3t4A xen/include/asm-x86/fixmap.h
 3e2d29944GI24gf7vOP_7x8EyuqxeA xen/include/asm-x86/flushtlb.h
 4294b5eep4lWuDtYUR74gYwt-_FnHA xen/include/asm-x86/genapic.h
diff --git a/xen/include/asm-ia64/event.h b/xen/include/asm-ia64/event.h
new file mode 100644 (file)
index 0000000..e7b5cda
--- /dev/null
@@ -0,0 +1,16 @@
+/******************************************************************************
+ * event.h
+ *
+ * A nice interface for passing asynchronous events to guest OSes.
+ * (architecture-dependent part)
+ *
+ */
+
+#ifndef __ASM_EVENT_H__
+#define __ASM_EVENT_H__
+
+static inline void evtchn_notify(struct vcpu *v)
+{
+}
+
+#endif
diff --git a/xen/include/asm-x86/event.h b/xen/include/asm-x86/event.h
new file mode 100644 (file)
index 0000000..e7b5cda
--- /dev/null
@@ -0,0 +1,16 @@
+/******************************************************************************
+ * event.h
+ *
+ * A nice interface for passing asynchronous events to guest OSes.
+ * (architecture-dependent part)
+ *
+ */
+
+#ifndef __ASM_EVENT_H__
+#define __ASM_EVENT_H__
+
+static inline void evtchn_notify(struct vcpu *v)
+{
+}
+
+#endif
index 734427266b1bc6e9380ebd1d561ee2df9097b869..05683344ca925fdfd572bd1fc1cb31cae803af91 100644 (file)
@@ -13,6 +13,7 @@
 #include <xen/sched.h>
 #include <xen/smp.h>
 #include <asm/bitops.h>
+#include <asm/event.h>
 
 /*
  * EVENT-CHANNEL NOTIFICATIONS
@@ -34,6 +35,7 @@ static inline void evtchn_set_pending(struct vcpu *v, int port)
     {
         /* The VCPU pending flag must be set /after/ update to evtchn-pend. */
         set_bit(0, &v->vcpu_info->evtchn_upcall_pending);
+        evtchn_notify(v);
 
         /*
          * NB1. 'vcpu_flags' and 'processor' must be checked /after/ update of